package cn.wolfcode.crm.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter
public class SystemDictionaryItem extends BaseDomain{
    private Long parentId;

    private String title;

    private Integer sequence;


    //返回页面需要数据的json字符串
    public String getJsonString(){
        Map<String,Object> map = new HashMap<>();
        map.put("id",id);
        //map.put("parentId",parentId);
        map.put("title",title);
        map.put("sequence",sequence);
        //转换成json字符串
        return JSON.toJSONString(map);
    }

}